#add_executable(test_event_new 06test_event_new.c)
#target_link_libraries(test_event_new event)

set(EVENT_LIB event pthread)
#link_libraries lib的绝对路径
#link_libraries(${EVENT_LIB} event pthread)
set(unity_tests
        01read
        02write
        03echoserver
        04server
        05client
        06test_event_new
        )
foreach(unity_test  ${unity_tests})
    add_executable("${unity_test}" "${unity_test}.c")
    target_link_libraries("${unity_test}" "${EVENT_LIB}" )

endforeach()